package org.jeecg.config.binlog;

/**
 * @author gbstart
 * @create 2024-06-04 21:16
 */

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Data
@Configuration
@Component
@ConfigurationProperties(prefix = "spring.datasource.dynamic.datasource.master")
public class BinLogConstants {

    @Value("url")
    private String url;

//    private int port=3306;


    @Value("username")
    private String username;

    @Value("${spring.datasource.dynamic.datasource.master.password:}")
    private String passwd;

//    private String db="";

    private String table;

    public static final int consumerThreads = 4;

    public static final long queueSleep = 10000;

}
